package gokyesil.game.aygitciklar.controller;

import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.Fixture;
import com.badlogic.gdx.physics.box2d.RayCastCallback;

public class GroundNormal implements RayCastCallback 
{
	public Vector2 normal;
	public boolean isOnTheGround;
	public GroundNormal()
	{
		normal = new Vector2(0.0f, 0.0f);
		isOnTheGround = false;
	}
	public float reportRayFixture(Fixture fixture, Vector2 point, Vector2 _normal, float fraction)
	{
		normal.set(_normal);
		isOnTheGround = true;
		return 0;
	}
	public void reset() {
		normal.set(0,0);
		isOnTheGround = false;
		// TODO Auto-generated method stub
		
	}
}
